﻿using System;

namespace diantou.web.include
{
    /// <summary>
    /// 添加竞赛所有者
    /// </summary>
    [fastCSharp.code.cSharp.webView(IsPage = false, IsPool = true, QueryName = null)]
    partial class addContestOwner : adminView<addContestOwner>
    {
        /// <summary>
        /// 竞赛所有者
        /// </summary>
        private diantou.dataAccess.user owner;
        /// <summary>
        /// 
        /// </summary>
        /// <param name="contestId"></param>
        /// <param name="userId"></param>
        /// <returns></returns>
        private bool loadView(int contestId, int userId)
        {
            if (diantou.dataAccess.tcpCall.contestOwner.append(contestId, userId))
            {
                owner = dataAccess.clientCache.User[userId];
                return true;
            }
            return false;
        }
    }
}
